package _spring_test._PropertyPlaceholder;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

/**
 * @Author: huangya
 * @Date: 2020/5/18
 * @Description:
 */
public class User5 {

    @Value("${id}")
    private String id;

    @Value("${name}")
    private String name;

    @Value("${age}")
    private int age;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }
}